home *** CD-ROM | disk | FTP | other *** search
- Path: srv1.freenet.calgary.ab.ca!dickson1
- From: Andrew Dickson <dickson1@freenet.calgary.ab.ca>
- Newsgroups: comp.lang.c++
- Subject: How to poll joystick in C++
- Date: Sun, 11 Feb 1996 08:57:32 -0700
- Organization: Calgary Free-Net
- Message-ID: <Pine.A32.3.91.960211084851.31374A-100000@srv1.freenet.calgary.ab.ca>
- NNTP-Posting-Host: dickson1@srv1.freenet.calgary.ab.ca
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=US-ASCII
-
-
- I am trying to write a small routine in C++ (first time I've used it
- since college) that will event-trap the fire buttons on a joystick
- attached to an IBM PC.
-
- After searching through the libraries that came with my copy of Turbo
- C++, I've come to the conclusion that there isn't a command equivalent to
- BASIC's ON STRIG( ) GOSUB ... in the libraries that this with TCPP. Are
- there any equivalent functions available in other libraries? Does any one
- out there have an old fossil of code that does this?
-
- My best guess is that my routine will have to check the
- memory address that stores the gameport status, and then branch on a
- change in the bit that represents the gameport switch. Unfortunately, I
- don't have a reference that tells me what this address is. Any hints here?
-
- Any help would be appreciated.
-
-
- Andrew Dickson
- (A frustrated mechanical engineer who really just wants to know how fast
- the damn shaft is spinning.)
-
-
-
-
-